<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Class template offset_ptr</title>
<link rel="stylesheet" href="../../../../doc/src/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href="../../index.html" title="The Boost C++ Libraries BoostBook Documentation Subset">
<link rel="up" href="../../interprocess/indexes_reference.html#doxygen.boost_interprocess_header_reference.offset__ptr_8hpp" title="Header &lt;boost/interprocess/offset_ptr.hpp&gt;">
<link rel="prev" href="classboost_1_1interprocess_1_1simple__seq__fit.html" title="Class template simple_seq_fit">
<link rel="next" href="offset__ptr_8hpp_1ae7c20c7880cff81e435a5d59c162b8f0.html" title="Function template operator&lt;&lt;">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../boost.png"></td>
<td align="center"><a href="../../../../index.html">Home</a></td>
<td align="center"><a href="../../../../libs/libraries.htm">Libraries</a></td>
<td align="center"><a href="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td>
<td align="center"><a href="../../../../more/index.htm">More</a></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="classboost_1_1interprocess_1_1simple__seq__fit.html"><img src="../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../interprocess/indexes_reference.html#doxygen.boost_interprocess_header_reference.offset__ptr_8hpp"><img src="../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="offset__ptr_8hpp_1ae7c20c7880cff81e435a5d59c162b8f0.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a>
</div>
<div class="refentry">
<a name="doxygen.boost_interprocess_header_reference.classboost_1_1interprocess_1_1offset__ptr"></a><div class="titlepage"></div>
<div class="refnamediv">
<h2><span class="refentrytitle">Class template offset_ptr</span></h2>
<p>boost::interprocess::offset_ptr</p>
</div>
<h2 class="refsynopsisdiv-title">Synopsis</h2>
<div class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: &lt;<a class="link" href="../../interprocess/indexes_reference.html#doxygen.boost_interprocess_header_reference.offset__ptr_8hpp" title="Header &lt;boost/interprocess/offset_ptr.hpp&gt;">boost/interprocess/offset_ptr.hpp</a>&gt;

</span><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> PointedType<span class="special">,</span> <span class="keyword">typename</span> DifferenceType<span class="special">,</span> <span class="keyword">typename</span> OffsetType<span class="special">,</span> 
         <span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> OffsetAlignment<span class="special">&gt;</span> 
<span class="keyword">class</span> <a class="link" href="classboost_1_1interprocess_1_1offset__ptr.html" title="Class template offset_ptr">offset_ptr</a> <span class="special">{</span>
<span class="keyword">public</span><span class="special">:</span>
  <span class="comment">// <a class="link" href="classboost_1_1interprocess_1_1offset__ptr.html#doxygen.boost_interprocess_header_reference.classboost_1_1interprocess_1_1offset__ptrtypes">types</a></span>
  <span class="keyword">typedef</span> <span class="identifier">PointedType</span>                                                  <a name="doxygen.boost_interprocess_header_reference.classboost_1_1interprocess_1_1offset__ptr_1a6ac060cd5ad95ed1fdfba76bdac6fcdc"></a><span class="identifier">element_type</span><span class="special">;</span>     
  <span class="keyword">typedef</span> <span class="identifier">PointedType</span> <span class="special">*</span>                                                <a name="doxygen.boost_interprocess_header_reference.classboost_1_1interprocess_1_1offset__ptr_1ad36696cc4bd61efa2c69a94f3e94654f"></a><span class="identifier">pointer</span><span class="special">;</span>          
  <span class="keyword">typedef</span> <span class="emphasis"><em><span class="identifier">unspecified</span></em></span>                                                  <a name="doxygen.boost_interprocess_header_reference.classboost_1_1interprocess_1_1offset__ptr_1afe9eb50fbec9db34988a73733c01baef"></a><span class="identifier">reference</span><span class="special">;</span>        
  <span class="keyword">typedef</span> <span class="emphasis"><em><span class="identifier">unspecified</span></em></span>                                                  <a name="doxygen.boost_interprocess_header_reference.classboost_1_1interprocess_1_1offset__ptr_1a27f8818dcf0962727bb5bcf083b4da2b"></a><span class="identifier">value_type</span><span class="special">;</span>       
  <span class="keyword">typedef</span> <span class="identifier">DifferenceType</span>                                               <a name="doxygen.boost_interprocess_header_reference.classboost_1_1interprocess_1_1offset__ptr_1aa3a7b1567b07df3b87b4b3ca0a56a34c"></a><span class="identifier">difference_type</span><span class="special">;</span>  
  <span class="keyword">typedef</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">random_access_iterator_tag</span>                              <a name="doxygen.boost_interprocess_header_reference.classboost_1_1interprocess_1_1offset__ptr_1ac2f3b9cde1aafa0be7b3444060620d7e"></a><span class="identifier">iterator_category</span><span class="special">;</span>
  <span class="keyword">typedef</span> <span class="identifier">OffsetType</span>                                                   <a name="doxygen.boost_interprocess_header_reference.classboost_1_1interprocess_1_1offset__ptr_1a5293da32e5b07373c8c6c07d6ceecfdb"></a><span class="identifier">offset_type</span><span class="special">;</span>      
  <span class="keyword">typedef</span> <a class="link" href="classboost_1_1interprocess_1_1offset__ptr.html" title="Class template offset_ptr">offset_ptr</a><span class="special">&lt;</span> <span class="identifier">U</span><span class="special">,</span> <span class="identifier">DifferenceType</span><span class="special">,</span> <span class="identifier">OffsetType</span><span class="special">,</span> <span class="identifier">OffsetAlignment</span> <span class="special">&gt;</span> <a class="link" href="classboost_1_1interprocess_1_1offset__ptr.html#doxygen.boost_interprocess_header_reference.classboost_1_1interprocess_1_1offset__ptr_1a9749a8bdf100034bb4750d38bbaf5da6"><span class="identifier">rebind</span></a><span class="special">;</span>           

  <span class="comment">// <a class="link" href="classboost_1_1interprocess_1_1offset__ptr.html#id47-bb">public member functions</a></span>
  <a class="link" href="classboost_1_1interprocess_1_1offset__ptr.html#doxygen.boost_interprocess_header_reference.classboost_1_1interprocess_1_1offset__ptr_1ab34ae7e6027112173fa5f54d4b8e7037"><span class="identifier">offset_ptr</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <a class="link" href="classboost_1_1interprocess_1_1offset__ptr.html#doxygen.boost_interprocess_header_reference.classboost_1_1interprocess_1_1offset__ptr_1ae12a483fddd8eaa35167e9c5ad2083c1"><span class="identifier">offset_ptr</span></a><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">nullptr_t</span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> T<span class="special">&gt;</span> <a class="link" href="classboost_1_1interprocess_1_1offset__ptr.html#doxygen.boost_interprocess_header_reference.classboost_1_1interprocess_1_1offset__ptr_1adb6f8d7ea5749c0dc9b1c66bcb181732"><span class="identifier">offset_ptr</span></a><span class="special">(</span><span class="identifier">T</span> <span class="special">*</span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <a class="link" href="classboost_1_1interprocess_1_1offset__ptr.html#doxygen.boost_interprocess_header_reference.classboost_1_1interprocess_1_1offset__ptr_1ae7559fd69782a717c0093b1eb74abe59"><span class="identifier">offset_ptr</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="classboost_1_1interprocess_1_1offset__ptr.html" title="Class template offset_ptr">offset_ptr</a> <span class="special">&amp;</span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> T2<span class="special">&gt;</span> 
    <a class="link" href="classboost_1_1interprocess_1_1offset__ptr.html#doxygen.boost_interprocess_header_reference.classboost_1_1interprocess_1_1offset__ptr_1a4409dc4cc63fbb5d71d92b219cdcf3e4"><span class="identifier">offset_ptr</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="classboost_1_1interprocess_1_1offset__ptr.html" title="Class template offset_ptr">offset_ptr</a><span class="special">&lt;</span> <span class="identifier">T2</span><span class="special">,</span> <span class="identifier">DifferenceType</span><span class="special">,</span> <span class="identifier">OffsetType</span><span class="special">,</span> <span class="identifier">OffsetAlignment</span> <span class="special">&gt;</span> <span class="special">&amp;</span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> T2<span class="special">,</span> <span class="keyword">typename</span> P2<span class="special">,</span> <span class="keyword">typename</span> O2<span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> A2<span class="special">&gt;</span> 
    <a class="link" href="classboost_1_1interprocess_1_1offset__ptr.html#doxygen.boost_interprocess_header_reference.classboost_1_1interprocess_1_1offset__ptr_1af4154b1f8ad527bc86b7b48ab29b06c7"><span class="identifier">offset_ptr</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="classboost_1_1interprocess_1_1offset__ptr.html" title="Class template offset_ptr">offset_ptr</a><span class="special">&lt;</span> <span class="identifier">T2</span><span class="special">,</span> <span class="identifier">P2</span><span class="special">,</span> <span class="identifier">O2</span><span class="special">,</span> <span class="identifier">A2</span> <span class="special">&gt;</span> <span class="special">&amp;</span><span class="special">,</span> <span class="emphasis"><em><span class="identifier">unspecified</span></em></span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> T2<span class="special">,</span> <span class="keyword">typename</span> P2<span class="special">,</span> <span class="keyword">typename</span> O2<span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> A2<span class="special">&gt;</span> 
    <a class="link" href="classboost_1_1interprocess_1_1offset__ptr.html#doxygen.boost_interprocess_header_reference.classboost_1_1interprocess_1_1offset__ptr_1a9f92aeacb8fd9e26b3c862f995460046"><span class="identifier">offset_ptr</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="classboost_1_1interprocess_1_1offset__ptr.html" title="Class template offset_ptr">offset_ptr</a><span class="special">&lt;</span> <span class="identifier">T2</span><span class="special">,</span> <span class="identifier">P2</span><span class="special">,</span> <span class="identifier">O2</span><span class="special">,</span> <span class="identifier">A2</span> <span class="special">&gt;</span> <span class="special">&amp;</span><span class="special">,</span> <span class="emphasis"><em><span class="identifier">unspecified</span></em></span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> T2<span class="special">,</span> <span class="keyword">typename</span> P2<span class="special">,</span> <span class="keyword">typename</span> O2<span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> A2<span class="special">&gt;</span> 
    <a class="link" href="classboost_1_1interprocess_1_1offset__ptr.html#doxygen.boost_interprocess_header_reference.classboost_1_1interprocess_1_1offset__ptr_1a32af9eb53e76c33a56442fa76e1f6866"><span class="identifier">offset_ptr</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="classboost_1_1interprocess_1_1offset__ptr.html" title="Class template offset_ptr">offset_ptr</a><span class="special">&lt;</span> <span class="identifier">T2</span><span class="special">,</span> <span class="identifier">P2</span><span class="special">,</span> <span class="identifier">O2</span><span class="special">,</span> <span class="identifier">A2</span> <span class="special">&gt;</span> <span class="special">&amp;</span><span class="special">,</span> <span class="emphasis"><em><span class="identifier">unspecified</span></em></span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> T2<span class="special">,</span> <span class="keyword">typename</span> P2<span class="special">,</span> <span class="keyword">typename</span> O2<span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> A2<span class="special">&gt;</span> 
    <a class="link" href="classboost_1_1interprocess_1_1offset__ptr.html#doxygen.boost_interprocess_header_reference.classboost_1_1interprocess_1_1offset__ptr_1ab2685bb21889b35631e4c970f16508da"><span class="identifier">offset_ptr</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="classboost_1_1interprocess_1_1offset__ptr.html" title="Class template offset_ptr">offset_ptr</a><span class="special">&lt;</span> <span class="identifier">T2</span><span class="special">,</span> <span class="identifier">P2</span><span class="special">,</span> <span class="identifier">O2</span><span class="special">,</span> <span class="identifier">A2</span> <span class="special">&gt;</span> <span class="special">&amp;</span><span class="special">,</span> <span class="emphasis"><em><span class="identifier">unspecified</span></em></span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <span class="identifier">pointer</span> <a class="link" href="classboost_1_1interprocess_1_1offset__ptr.html#doxygen.boost_interprocess_header_reference.classboost_1_1interprocess_1_1offset__ptr_1ad94dd2687c38de0dfcd10561d9909d1b"><span class="identifier">get</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <span class="identifier">offset_type</span> <a class="link" href="classboost_1_1interprocess_1_1offset__ptr.html#doxygen.boost_interprocess_header_reference.classboost_1_1interprocess_1_1offset__ptr_1abb56066c2cec5ad587e3a52bed62f6c7"><span class="identifier">get_offset</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <span class="identifier">pointer</span> <a class="link" href="classboost_1_1interprocess_1_1offset__ptr.html#doxygen.boost_interprocess_header_reference.classboost_1_1interprocess_1_1offset__ptr_1afc9b40ea7877bb831d98a7af40ae5c05"><span class="keyword">operator</span><span class="special">-&gt;</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <span class="identifier">reference</span> <a class="link" href="classboost_1_1interprocess_1_1offset__ptr.html#doxygen.boost_interprocess_header_reference.classboost_1_1interprocess_1_1offset__ptr_1aab4cf5362bdd13dc5297f8b8bf04ca2c"><span class="keyword">operator</span><span class="special">*</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <span class="identifier">reference</span> <a class="link" href="classboost_1_1interprocess_1_1offset__ptr.html#doxygen.boost_interprocess_header_reference.classboost_1_1interprocess_1_1offset__ptr_1ac1c69586c71ee8ce46d0513e386e6dc2"><span class="keyword">operator</span><span class="special">[</span><span class="special">]</span></a><span class="special">(</span><span class="identifier">difference_type</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> T<span class="special">&gt;</span> <a class="link" href="classboost_1_1interprocess_1_1offset__ptr.html" title="Class template offset_ptr">offset_ptr</a> <span class="special">&amp;</span> <a class="link" href="classboost_1_1interprocess_1_1offset__ptr.html#doxygen.boost_interprocess_header_reference.classboost_1_1interprocess_1_1offset__ptr_1ab6c597d8651de8d34e839fa7773c2e40"><span class="keyword">operator</span><span class="special">=</span></a><span class="special">(</span><span class="identifier">T</span> <span class="special">*</span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <a class="link" href="classboost_1_1interprocess_1_1offset__ptr.html" title="Class template offset_ptr">offset_ptr</a> <span class="special">&amp;</span> <a class="link" href="classboost_1_1interprocess_1_1offset__ptr.html#doxygen.boost_interprocess_header_reference.classboost_1_1interprocess_1_1offset__ptr_1ab0ccf11dd4a71f98d653023905b65a5d"><span class="keyword">operator</span><span class="special">=</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="classboost_1_1interprocess_1_1offset__ptr.html" title="Class template offset_ptr">offset_ptr</a> <span class="special">&amp;</span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <a class="link" href="classboost_1_1interprocess_1_1offset__ptr.html" title="Class template offset_ptr">offset_ptr</a> <span class="special">&amp;</span> <a class="link" href="classboost_1_1interprocess_1_1offset__ptr.html#doxygen.boost_interprocess_header_reference.classboost_1_1interprocess_1_1offset__ptr_1a8870f81678bde10cd0fbe29631ac318a"><span class="keyword">operator</span><span class="special">=</span></a><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">nullptr_t</span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> T2<span class="special">&gt;</span> 
    <a class="link" href="classboost_1_1interprocess_1_1offset__ptr.html" title="Class template offset_ptr">offset_ptr</a> <span class="special">&amp;</span> 
    <a class="link" href="classboost_1_1interprocess_1_1offset__ptr.html#doxygen.boost_interprocess_header_reference.classboost_1_1interprocess_1_1offset__ptr_1a2716139b15791a7b2a6054598976a327"><span class="keyword">operator</span><span class="special">=</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="classboost_1_1interprocess_1_1offset__ptr.html" title="Class template offset_ptr">offset_ptr</a><span class="special">&lt;</span> <span class="identifier">T2</span><span class="special">,</span> <span class="identifier">DifferenceType</span><span class="special">,</span> <span class="identifier">OffsetType</span><span class="special">,</span> <span class="identifier">OffsetAlignment</span> <span class="special">&gt;</span> <span class="special">&amp;</span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <a class="link" href="classboost_1_1interprocess_1_1offset__ptr.html" title="Class template offset_ptr">offset_ptr</a> <span class="special">&amp;</span> <a class="link" href="classboost_1_1interprocess_1_1offset__ptr.html#doxygen.boost_interprocess_header_reference.classboost_1_1interprocess_1_1offset__ptr_1ac4ce34677414e1b6f7e6617fd4e7fd11"><span class="keyword">operator</span><span class="special">+=</span></a><span class="special">(</span><span class="identifier">difference_type</span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <a class="link" href="classboost_1_1interprocess_1_1offset__ptr.html" title="Class template offset_ptr">offset_ptr</a> <span class="special">&amp;</span> <a class="link" href="classboost_1_1interprocess_1_1offset__ptr.html#doxygen.boost_interprocess_header_reference.classboost_1_1interprocess_1_1offset__ptr_1aa4efa59c2ee2109e7a0b0661779faf6c"><span class="keyword">operator</span><span class="special">-=</span></a><span class="special">(</span><span class="identifier">difference_type</span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <a class="link" href="classboost_1_1interprocess_1_1offset__ptr.html" title="Class template offset_ptr">offset_ptr</a> <span class="special">&amp;</span> <a class="link" href="classboost_1_1interprocess_1_1offset__ptr.html#doxygen.boost_interprocess_header_reference.classboost_1_1interprocess_1_1offset__ptr_1a3e1063a438c3bca7b7825a636dbb4c5a"><span class="keyword">operator</span><span class="special">++</span></a><span class="special">(</span><span class="keyword">void</span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <a class="link" href="classboost_1_1interprocess_1_1offset__ptr.html" title="Class template offset_ptr">offset_ptr</a> <a class="link" href="classboost_1_1interprocess_1_1offset__ptr.html#doxygen.boost_interprocess_header_reference.classboost_1_1interprocess_1_1offset__ptr_1ada1687269397c838b5c774342b6364ba"><span class="keyword">operator</span><span class="special">++</span></a><span class="special">(</span><span class="keyword">int</span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <a class="link" href="classboost_1_1interprocess_1_1offset__ptr.html" title="Class template offset_ptr">offset_ptr</a> <span class="special">&amp;</span> <a class="link" href="classboost_1_1interprocess_1_1offset__ptr.html#doxygen.boost_interprocess_header_reference.classboost_1_1interprocess_1_1offset__ptr_1a5b2d121328594ef48fd581a35bdc3c45"><span class="keyword">operator</span><span class="special">--</span></a><span class="special">(</span><span class="keyword">void</span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <a class="link" href="classboost_1_1interprocess_1_1offset__ptr.html" title="Class template offset_ptr">offset_ptr</a> <a class="link" href="classboost_1_1interprocess_1_1offset__ptr.html#doxygen.boost_interprocess_header_reference.classboost_1_1interprocess_1_1offset__ptr_1ad6f5bff5180164b2a2f781dfd4d8f61d"><span class="keyword">operator</span><span class="special">--</span></a><span class="special">(</span><span class="keyword">int</span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <span class="keyword">explicit</span> <a class="link" href="classboost_1_1interprocess_1_1offset__ptr.html#doxygen.boost_interprocess_header_reference.classboost_1_1interprocess_1_1offset__ptr_1a26bc0c260e9023c97de6e6e4ba13ac42"><span class="keyword">operator</span> <span class="keyword">bool</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <span class="keyword">bool</span> <a class="link" href="classboost_1_1interprocess_1_1offset__ptr.html#doxygen.boost_interprocess_header_reference.classboost_1_1interprocess_1_1offset__ptr_1a9ceec210ca236ff27b9c7b940886cb04"><span class="keyword">operator</span><span class="special">!</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span>

  <span class="comment">// <a class="link" href="classboost_1_1interprocess_1_1offset__ptr.html#id48-bb">public static functions</a></span>
  <span class="keyword">static</span> <a class="link" href="classboost_1_1interprocess_1_1offset__ptr.html" title="Class template offset_ptr">offset_ptr</a> <a class="link" href="classboost_1_1interprocess_1_1offset__ptr.html#doxygen.boost_interprocess_header_reference.classboost_1_1interprocess_1_1offset__ptr_1a45c57bf4497fd36ff9835f7e72a5699c"><span class="identifier">pointer_to</span></a><span class="special">(</span><span class="emphasis"><em><span class="identifier">unspecified</span></em></span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span>

  <span class="comment">// <a class="link" href="../boost_container_header_reference/classboost_1_1container_1_1map.html#id49-bb">friend functions</a></span>
  <a class="link" href="classboost_1_1interprocess_1_1offset__ptr.html" title="Class template offset_ptr">offset_ptr</a> <a class="link" href="classboost_1_1interprocess_1_1offset__ptr.html#doxygen.boost_interprocess_header_reference.classboost_1_1interprocess_1_1offset__ptr_1a0d301becc4bbad56e35de406d388d3de"><span class="keyword">operator</span><span class="special">+</span></a><span class="special">(</span><span class="identifier">difference_type</span><span class="special">,</span> <a class="link" href="classboost_1_1interprocess_1_1offset__ptr.html" title="Class template offset_ptr">offset_ptr</a><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <a class="link" href="classboost_1_1interprocess_1_1offset__ptr.html" title="Class template offset_ptr">offset_ptr</a> <a class="link" href="classboost_1_1interprocess_1_1offset__ptr.html#doxygen.boost_interprocess_header_reference.classboost_1_1interprocess_1_1offset__ptr_1ad2d1eaef02a54e6d8c7b36268bb55b98"><span class="keyword">operator</span><span class="special">+</span></a><span class="special">(</span><a class="link" href="classboost_1_1interprocess_1_1offset__ptr.html" title="Class template offset_ptr">offset_ptr</a><span class="special">,</span> <span class="identifier">difference_type</span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <a class="link" href="classboost_1_1interprocess_1_1offset__ptr.html" title="Class template offset_ptr">offset_ptr</a> <a class="link" href="classboost_1_1interprocess_1_1offset__ptr.html#doxygen.boost_interprocess_header_reference.classboost_1_1interprocess_1_1offset__ptr_1ad49058ebe7afe61ce598da1f991c782f"><span class="keyword">operator</span><span class="special">-</span></a><span class="special">(</span><a class="link" href="classboost_1_1interprocess_1_1offset__ptr.html" title="Class template offset_ptr">offset_ptr</a><span class="special">,</span> <span class="identifier">difference_type</span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <a class="link" href="classboost_1_1interprocess_1_1offset__ptr.html" title="Class template offset_ptr">offset_ptr</a> <a class="link" href="classboost_1_1interprocess_1_1offset__ptr.html#doxygen.boost_interprocess_header_reference.classboost_1_1interprocess_1_1offset__ptr_1a43b9a4a1e49d118e91222018b16fd362"><span class="keyword">operator</span><span class="special">-</span></a><span class="special">(</span><span class="identifier">difference_type</span><span class="special">,</span> <a class="link" href="classboost_1_1interprocess_1_1offset__ptr.html" title="Class template offset_ptr">offset_ptr</a><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <span class="identifier">difference_type</span> <a class="link" href="classboost_1_1interprocess_1_1offset__ptr.html#doxygen.boost_interprocess_header_reference.classboost_1_1interprocess_1_1offset__ptr_1a452f048c5a6c38f7fb71aff30ab4c10c"><span class="keyword">operator</span><span class="special">-</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="classboost_1_1interprocess_1_1offset__ptr.html" title="Class template offset_ptr">offset_ptr</a> <span class="special">&amp;</span><span class="special">,</span> <span class="keyword">const</span> <a class="link" href="classboost_1_1interprocess_1_1offset__ptr.html" title="Class template offset_ptr">offset_ptr</a> <span class="special">&amp;</span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span>

  <span class="comment">// <a class="link" href="../boost_container_header_reference/classboost_1_1container_1_1map.html#id50-bb">private member functions</a></span>
  <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> T2<span class="special">&gt;</span> 
    <span class="keyword">void</span> <a class="link" href="classboost_1_1interprocess_1_1offset__ptr.html#doxygen.boost_interprocess_header_reference.classboost_1_1interprocess_1_1offset__ptr_1a7b53dcc06e69d65c56eb91faea2b5a48"><span class="identifier">assign</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="classboost_1_1interprocess_1_1offset__ptr.html" title="Class template offset_ptr">offset_ptr</a><span class="special">&lt;</span> <span class="identifier">T2</span><span class="special">,</span> <span class="identifier">DifferenceType</span><span class="special">,</span> <span class="identifier">OffsetType</span><span class="special">,</span> <span class="identifier">OffsetAlignment</span> <span class="special">&gt;</span> <span class="special">&amp;</span><span class="special">,</span> 
                <span class="emphasis"><em><span class="identifier">unspecified</span></em></span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> T2<span class="special">&gt;</span> 
    <span class="keyword">void</span> <a class="link" href="classboost_1_1interprocess_1_1offset__ptr.html#doxygen.boost_interprocess_header_reference.classboost_1_1interprocess_1_1offset__ptr_1afba2dcc1699274b73f64b99820ef5111"><span class="identifier">assign</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="classboost_1_1interprocess_1_1offset__ptr.html" title="Class template offset_ptr">offset_ptr</a><span class="special">&lt;</span> <span class="identifier">T2</span><span class="special">,</span> <span class="identifier">DifferenceType</span><span class="special">,</span> <span class="identifier">OffsetType</span><span class="special">,</span> <span class="identifier">OffsetAlignment</span> <span class="special">&gt;</span> <span class="special">&amp;</span><span class="special">,</span> 
                <span class="emphasis"><em><span class="identifier">unspecified</span></em></span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span>
<span class="special">}</span><span class="special">;</span></pre></div>
<div class="refsect1">
<a name="id-1.3.17.19.3.43.4.4"></a><h2>Description</h2>
<p>A smart pointer that stores the offset between the pointer and the object it points to. This allows special properties, since the pointer is independent from the address of the pointee, if the pointer and the pointee are still separated by the same offset. This feature converts <a class="link" href="classboost_1_1interprocess_1_1offset__ptr.html" title="Class template offset_ptr">offset_ptr</a> in a smart pointer that can be placed in shared memory and memory mapped files mapped at different addresses in every process.</p>
<p>
b&gt;Note: <a class="link" href="classboost_1_1interprocess_1_1offset__ptr.html" title="Class template offset_ptr">offset_ptr</a> uses implementation defined properties, present in most platforms, for performance reasons:</p>
<div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">
<li class="listitem"><p>Assumes that OffsetType representation of nullptr is (OffsetType)zero.</p></li>
<li class="listitem"><p>Assumes that incrementing a OffsetType obtained from a pointer is equivalent to incrementing the pointer and then converting it back to OffsetType. </p></li>
</ul></div>
<p>
</p>
<div class="refsect2">
<a name="id-1.3.17.19.3.43.4.4.4"></a><h3>Template Parameters</h3>
<div class="orderedlist"><ol class="orderedlist" type="1">
<li class="listitem">
<pre class="literallayout"><span class="keyword">typename</span> PointedType</pre>
<p>The type of the pointee. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">typename</span> DifferenceType</pre>
<p>A signed integer type that can represent the arithmetic operations on the pointer </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">typename</span> OffsetType</pre>
<p>An unsigned integer type that can represent the distance between two pointers reinterpret_cast-ed as unsigned integers. This type should be at least of the same size of std::uintptr_t. In some systems it's possible to communicate between 32 and 64 bit processes using 64 bit offsets. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> OffsetAlignment</pre>
<p>Alignment of the OffsetType stored inside. In some systems might be necessary to align it to 64 bits in order to communicate 32 and 64 bit processes using 64 bit offsets.</p>
</li>
</ol></div>
</div>
<div class="refsect2">
<a name="id-1.3.17.19.3.43.4.4.5"></a><h3>
<a name="doxygen.boost_interprocess_header_reference.classboost_1_1interprocess_1_1offset__ptrtypes"></a><code class="computeroutput">offset_ptr</code> 
        public
       types</h3>
<div class="orderedlist"><ol class="orderedlist" type="1"><li class="listitem">
<p>
<span class="keyword">typedef</span> <a class="link" href="classboost_1_1interprocess_1_1offset__ptr.html" title="Class template offset_ptr">offset_ptr</a><span class="special">&lt;</span> <span class="identifier">U</span><span class="special">,</span> <span class="identifier">DifferenceType</span><span class="special">,</span> <span class="identifier">OffsetType</span><span class="special">,</span> <span class="identifier">OffsetAlignment</span> <span class="special">&gt;</span> <a name="doxygen.boost_interprocess_header_reference.classboost_1_1interprocess_1_1offset__ptr_1a9749a8bdf100034bb4750d38bbaf5da6"></a><span class="identifier">rebind</span><span class="special">;</span></p>
<p>Compatibility with pointer_traits </p>
</li></ol></div>
</div>
<div class="refsect2">
<a name="id-1.3.17.19.3.43.4.4.6"></a><h3>
<a name="id47-bb"></a><code class="computeroutput">offset_ptr</code> public member functions</h3>
<div class="orderedlist"><ol class="orderedlist" type="1">
<li class="listitem">
<pre class="literallayout"><a name="doxygen.boost_interprocess_header_reference.classboost_1_1interprocess_1_1offset__ptr_1ab34ae7e6027112173fa5f54d4b8e7037"></a><span class="identifier">offset_ptr</span><span class="special">(</span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span></pre>
<p>Default constructor (null pointer). Never throws. </p>
</li>
<li class="listitem">
<pre class="literallayout"><a name="doxygen.boost_interprocess_header_reference.classboost_1_1interprocess_1_1offset__ptr_1ae12a483fddd8eaa35167e9c5ad2083c1"></a><span class="identifier">offset_ptr</span><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">nullptr_t</span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span></pre>
<p>Constructor from nullptr. Never throws. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> T<span class="special">&gt;</span> <a name="doxygen.boost_interprocess_header_reference.classboost_1_1interprocess_1_1offset__ptr_1adb6f8d7ea5749c0dc9b1c66bcb181732"></a><span class="identifier">offset_ptr</span><span class="special">(</span><span class="identifier">T</span> <span class="special">*</span> ptr<span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span></pre>
<p>Constructor from raw pointer. Only takes part in overload resolution if T* is convertible to PointedType* Never throws. </p>
</li>
<li class="listitem">
<pre class="literallayout"><a name="doxygen.boost_interprocess_header_reference.classboost_1_1interprocess_1_1offset__ptr_1ae7559fd69782a717c0093b1eb74abe59"></a><span class="identifier">offset_ptr</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="classboost_1_1interprocess_1_1offset__ptr.html" title="Class template offset_ptr">offset_ptr</a> <span class="special">&amp;</span> ptr<span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span></pre>
<p>Constructor from other <a class="link" href="classboost_1_1interprocess_1_1offset__ptr.html" title="Class template offset_ptr">offset_ptr</a>. Never throws. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> T2<span class="special">&gt;</span> 
  <a name="doxygen.boost_interprocess_header_reference.classboost_1_1interprocess_1_1offset__ptr_1a4409dc4cc63fbb5d71d92b219cdcf3e4"></a><span class="identifier">offset_ptr</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="classboost_1_1interprocess_1_1offset__ptr.html" title="Class template offset_ptr">offset_ptr</a><span class="special">&lt;</span> <span class="identifier">T2</span><span class="special">,</span> <span class="identifier">DifferenceType</span><span class="special">,</span> <span class="identifier">OffsetType</span><span class="special">,</span> <span class="identifier">OffsetAlignment</span> <span class="special">&gt;</span> <span class="special">&amp;</span> ptr<span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span></pre>
<p>Constructor from other <a class="link" href="classboost_1_1interprocess_1_1offset__ptr.html" title="Class template offset_ptr">offset_ptr</a>. Only takes part in overload resolution if T2* is convertible to PointedType*. Never throws. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> T2<span class="special">,</span> <span class="keyword">typename</span> P2<span class="special">,</span> <span class="keyword">typename</span> O2<span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> A2<span class="special">&gt;</span> 
  <a name="doxygen.boost_interprocess_header_reference.classboost_1_1interprocess_1_1offset__ptr_1af4154b1f8ad527bc86b7b48ab29b06c7"></a><span class="identifier">offset_ptr</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="classboost_1_1interprocess_1_1offset__ptr.html" title="Class template offset_ptr">offset_ptr</a><span class="special">&lt;</span> <span class="identifier">T2</span><span class="special">,</span> <span class="identifier">P2</span><span class="special">,</span> <span class="identifier">O2</span><span class="special">,</span> <span class="identifier">A2</span> <span class="special">&gt;</span> <span class="special">&amp;</span> r<span class="special">,</span> <span class="emphasis"><em><span class="identifier">unspecified</span></em></span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span></pre>
<p>Emulates static_cast operator. Never throws. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> T2<span class="special">,</span> <span class="keyword">typename</span> P2<span class="special">,</span> <span class="keyword">typename</span> O2<span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> A2<span class="special">&gt;</span> 
  <a name="doxygen.boost_interprocess_header_reference.classboost_1_1interprocess_1_1offset__ptr_1a9f92aeacb8fd9e26b3c862f995460046"></a><span class="identifier">offset_ptr</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="classboost_1_1interprocess_1_1offset__ptr.html" title="Class template offset_ptr">offset_ptr</a><span class="special">&lt;</span> <span class="identifier">T2</span><span class="special">,</span> <span class="identifier">P2</span><span class="special">,</span> <span class="identifier">O2</span><span class="special">,</span> <span class="identifier">A2</span> <span class="special">&gt;</span> <span class="special">&amp;</span> r<span class="special">,</span> <span class="emphasis"><em><span class="identifier">unspecified</span></em></span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span></pre>
<p>Emulates const_cast operator. Never throws. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> T2<span class="special">,</span> <span class="keyword">typename</span> P2<span class="special">,</span> <span class="keyword">typename</span> O2<span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> A2<span class="special">&gt;</span> 
  <a name="doxygen.boost_interprocess_header_reference.classboost_1_1interprocess_1_1offset__ptr_1a32af9eb53e76c33a56442fa76e1f6866"></a><span class="identifier">offset_ptr</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="classboost_1_1interprocess_1_1offset__ptr.html" title="Class template offset_ptr">offset_ptr</a><span class="special">&lt;</span> <span class="identifier">T2</span><span class="special">,</span> <span class="identifier">P2</span><span class="special">,</span> <span class="identifier">O2</span><span class="special">,</span> <span class="identifier">A2</span> <span class="special">&gt;</span> <span class="special">&amp;</span> r<span class="special">,</span> <span class="emphasis"><em><span class="identifier">unspecified</span></em></span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span></pre>
<p>Emulates dynamic_cast operator. Never throws. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> T2<span class="special">,</span> <span class="keyword">typename</span> P2<span class="special">,</span> <span class="keyword">typename</span> O2<span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> A2<span class="special">&gt;</span> 
  <a name="doxygen.boost_interprocess_header_reference.classboost_1_1interprocess_1_1offset__ptr_1ab2685bb21889b35631e4c970f16508da"></a><span class="identifier">offset_ptr</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="classboost_1_1interprocess_1_1offset__ptr.html" title="Class template offset_ptr">offset_ptr</a><span class="special">&lt;</span> <span class="identifier">T2</span><span class="special">,</span> <span class="identifier">P2</span><span class="special">,</span> <span class="identifier">O2</span><span class="special">,</span> <span class="identifier">A2</span> <span class="special">&gt;</span> <span class="special">&amp;</span> r<span class="special">,</span> <span class="emphasis"><em><span class="identifier">unspecified</span></em></span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span></pre>
<p>Emulates reinterpret_cast operator. Never throws. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">pointer</span> <a name="doxygen.boost_interprocess_header_reference.classboost_1_1interprocess_1_1offset__ptr_1ad94dd2687c38de0dfcd10561d9909d1b"></a><span class="identifier">get</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span></pre>
<p>Obtains raw pointer from offset. Never throws. </p>
</li>
<li class="listitem"><pre class="literallayout"><span class="identifier">offset_type</span> <a name="doxygen.boost_interprocess_header_reference.classboost_1_1interprocess_1_1offset__ptr_1abb56066c2cec5ad587e3a52bed62f6c7"></a><span class="identifier">get_offset</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span></pre></li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">pointer</span> <a name="doxygen.boost_interprocess_header_reference.classboost_1_1interprocess_1_1offset__ptr_1afc9b40ea7877bb831d98a7af40ae5c05"></a><span class="keyword">operator</span><span class="special">-&gt;</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span></pre>
<p>Pointer-like -&gt; operator. It can return 0 pointer. Never throws. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">reference</span> <a name="doxygen.boost_interprocess_header_reference.classboost_1_1interprocess_1_1offset__ptr_1aab4cf5362bdd13dc5297f8b8bf04ca2c"></a><span class="keyword">operator</span><span class="special">*</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span></pre>
<p>Dereferencing operator, if it is a null <a class="link" href="classboost_1_1interprocess_1_1offset__ptr.html" title="Class template offset_ptr">offset_ptr</a> behavior is undefined. Never throws. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">reference</span> <a name="doxygen.boost_interprocess_header_reference.classboost_1_1interprocess_1_1offset__ptr_1ac1c69586c71ee8ce46d0513e386e6dc2"></a><span class="keyword">operator</span><span class="special">[</span><span class="special">]</span><span class="special">(</span><span class="identifier">difference_type</span> idx<span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span></pre>
<p>Indexing operator. Never throws. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> T<span class="special">&gt;</span> <a class="link" href="classboost_1_1interprocess_1_1offset__ptr.html" title="Class template offset_ptr">offset_ptr</a> <span class="special">&amp;</span> <a name="doxygen.boost_interprocess_header_reference.classboost_1_1interprocess_1_1offset__ptr_1ab6c597d8651de8d34e839fa7773c2e40"></a><span class="keyword">operator</span><span class="special">=</span><span class="special">(</span><span class="identifier">T</span> <span class="special">*</span> ptr<span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span></pre>
<p>Assignment from raw pointer. Only takes part in overload resolution if T* is convertible to PointedType* Never throws. </p>
</li>
<li class="listitem">
<pre class="literallayout"><a class="link" href="classboost_1_1interprocess_1_1offset__ptr.html" title="Class template offset_ptr">offset_ptr</a> <span class="special">&amp;</span> <a name="doxygen.boost_interprocess_header_reference.classboost_1_1interprocess_1_1offset__ptr_1ab0ccf11dd4a71f98d653023905b65a5d"></a><span class="keyword">operator</span><span class="special">=</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="classboost_1_1interprocess_1_1offset__ptr.html" title="Class template offset_ptr">offset_ptr</a> <span class="special">&amp;</span> ptr<span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span></pre>
<p>Assignment from other <a class="link" href="classboost_1_1interprocess_1_1offset__ptr.html" title="Class template offset_ptr">offset_ptr</a>. Never throws. </p>
</li>
<li class="listitem">
<pre class="literallayout"><a class="link" href="classboost_1_1interprocess_1_1offset__ptr.html" title="Class template offset_ptr">offset_ptr</a> <span class="special">&amp;</span> <a name="doxygen.boost_interprocess_header_reference.classboost_1_1interprocess_1_1offset__ptr_1a8870f81678bde10cd0fbe29631ac318a"></a><span class="keyword">operator</span><span class="special">=</span><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">nullptr_t</span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span></pre>
<p>Assignment from nullptr. Never throws. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> T2<span class="special">&gt;</span> 
  <a class="link" href="classboost_1_1interprocess_1_1offset__ptr.html" title="Class template offset_ptr">offset_ptr</a> <span class="special">&amp;</span> 
  <a name="doxygen.boost_interprocess_header_reference.classboost_1_1interprocess_1_1offset__ptr_1a2716139b15791a7b2a6054598976a327"></a><span class="keyword">operator</span><span class="special">=</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="classboost_1_1interprocess_1_1offset__ptr.html" title="Class template offset_ptr">offset_ptr</a><span class="special">&lt;</span> <span class="identifier">T2</span><span class="special">,</span> <span class="identifier">DifferenceType</span><span class="special">,</span> <span class="identifier">OffsetType</span><span class="special">,</span> <span class="identifier">OffsetAlignment</span> <span class="special">&gt;</span> <span class="special">&amp;</span> ptr<span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span></pre>
<p>Assignment from related <a class="link" href="classboost_1_1interprocess_1_1offset__ptr.html" title="Class template offset_ptr">offset_ptr</a>. Only takes part in overload resolution if T2* is convertible to PointedType* Never throws. </p>
</li>
<li class="listitem">
<pre class="literallayout"><a class="link" href="classboost_1_1interprocess_1_1offset__ptr.html" title="Class template offset_ptr">offset_ptr</a> <span class="special">&amp;</span> <a name="doxygen.boost_interprocess_header_reference.classboost_1_1interprocess_1_1offset__ptr_1ac4ce34677414e1b6f7e6617fd4e7fd11"></a><span class="keyword">operator</span><span class="special">+=</span><span class="special">(</span><span class="identifier">difference_type</span> offset<span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span></pre>
<p><a class="link" href="classboost_1_1interprocess_1_1offset__ptr.html" title="Class template offset_ptr">offset_ptr</a> += difference_type. Never throws. </p>
</li>
<li class="listitem">
<pre class="literallayout"><a class="link" href="classboost_1_1interprocess_1_1offset__ptr.html" title="Class template offset_ptr">offset_ptr</a> <span class="special">&amp;</span> <a name="doxygen.boost_interprocess_header_reference.classboost_1_1interprocess_1_1offset__ptr_1aa4efa59c2ee2109e7a0b0661779faf6c"></a><span class="keyword">operator</span><span class="special">-=</span><span class="special">(</span><span class="identifier">difference_type</span> offset<span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span></pre>
<p><a class="link" href="classboost_1_1interprocess_1_1offset__ptr.html" title="Class template offset_ptr">offset_ptr</a> -= difference_type. Never throws. </p>
</li>
<li class="listitem">
<pre class="literallayout"><a class="link" href="classboost_1_1interprocess_1_1offset__ptr.html" title="Class template offset_ptr">offset_ptr</a> <span class="special">&amp;</span> <a name="doxygen.boost_interprocess_header_reference.classboost_1_1interprocess_1_1offset__ptr_1a3e1063a438c3bca7b7825a636dbb4c5a"></a><span class="keyword">operator</span><span class="special">++</span><span class="special">(</span><span class="keyword">void</span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span></pre>
<p>++<a class="link" href="classboost_1_1interprocess_1_1offset__ptr.html" title="Class template offset_ptr">offset_ptr</a>. Never throws. </p>
</li>
<li class="listitem">
<pre class="literallayout"><a class="link" href="classboost_1_1interprocess_1_1offset__ptr.html" title="Class template offset_ptr">offset_ptr</a> <a name="doxygen.boost_interprocess_header_reference.classboost_1_1interprocess_1_1offset__ptr_1ada1687269397c838b5c774342b6364ba"></a><span class="keyword">operator</span><span class="special">++</span><span class="special">(</span><span class="keyword">int</span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span></pre>
<p>offset_ptr++. Never throws. </p>
</li>
<li class="listitem">
<pre class="literallayout"><a class="link" href="classboost_1_1interprocess_1_1offset__ptr.html" title="Class template offset_ptr">offset_ptr</a> <span class="special">&amp;</span> <a name="doxygen.boost_interprocess_header_reference.classboost_1_1interprocess_1_1offset__ptr_1a5b2d121328594ef48fd581a35bdc3c45"></a><span class="keyword">operator</span><span class="special">--</span><span class="special">(</span><span class="keyword">void</span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span></pre>
<p>–<a class="link" href="classboost_1_1interprocess_1_1offset__ptr.html" title="Class template offset_ptr">offset_ptr</a>. Never throws. </p>
</li>
<li class="listitem">
<pre class="literallayout"><a class="link" href="classboost_1_1interprocess_1_1offset__ptr.html" title="Class template offset_ptr">offset_ptr</a> <a name="doxygen.boost_interprocess_header_reference.classboost_1_1interprocess_1_1offset__ptr_1ad6f5bff5180164b2a2f781dfd4d8f61d"></a><span class="keyword">operator</span><span class="special">--</span><span class="special">(</span><span class="keyword">int</span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span></pre>
<p><a class="link" href="classboost_1_1interprocess_1_1offset__ptr.html" title="Class template offset_ptr">offset_ptr</a>–. Never throws. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">explicit</span> <a name="doxygen.boost_interprocess_header_reference.classboost_1_1interprocess_1_1offset__ptr_1a26bc0c260e9023c97de6e6e4ba13ac42"></a><span class="keyword">operator</span> <span class="keyword">bool</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span></pre>
<p>safe bool conversion operator. Never throws. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">bool</span> <a name="doxygen.boost_interprocess_header_reference.classboost_1_1interprocess_1_1offset__ptr_1a9ceec210ca236ff27b9c7b940886cb04"></a><span class="keyword">operator</span><span class="special">!</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span></pre>
<p>Not operator. Not needed in theory, but improves portability. Never throws </p>
</li>
</ol></div>
</div>
<div class="refsect2">
<a name="id-1.3.17.19.3.43.4.4.7"></a><h3>
<a name="id48-bb"></a><code class="computeroutput">offset_ptr</code> public static functions</h3>
<div class="orderedlist"><ol class="orderedlist" type="1"><li class="listitem">
<pre class="literallayout"><span class="keyword">static</span> <a class="link" href="classboost_1_1interprocess_1_1offset__ptr.html" title="Class template offset_ptr">offset_ptr</a> <a name="doxygen.boost_interprocess_header_reference.classboost_1_1interprocess_1_1offset__ptr_1a45c57bf4497fd36ff9835f7e72a5699c"></a><span class="identifier">pointer_to</span><span class="special">(</span><span class="emphasis"><em><span class="identifier">unspecified</span></em></span> r<span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span></pre>
<p>Compatibility with pointer_traits </p>
</li></ol></div>
</div>
<div class="refsect2">
<a name="id-1.3.17.19.3.43.4.4.8"></a><h3>
<a name="id49-bb"></a><code class="computeroutput">offset_ptr</code> friend functions</h3>
<div class="orderedlist"><ol class="orderedlist" type="1">
<li class="listitem">
<pre class="literallayout"><a class="link" href="classboost_1_1interprocess_1_1offset__ptr.html" title="Class template offset_ptr">offset_ptr</a> <a name="doxygen.boost_interprocess_header_reference.classboost_1_1interprocess_1_1offset__ptr_1a0d301becc4bbad56e35de406d388d3de"></a><span class="keyword">operator</span><span class="special">+</span><span class="special">(</span><span class="identifier">difference_type</span> diff<span class="special">,</span> <a class="link" href="classboost_1_1interprocess_1_1offset__ptr.html" title="Class template offset_ptr">offset_ptr</a> right<span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span></pre>
<p>difference_type + <a class="link" href="classboost_1_1interprocess_1_1offset__ptr.html" title="Class template offset_ptr">offset_ptr</a> operation </p>
</li>
<li class="listitem">
<pre class="literallayout"><a class="link" href="classboost_1_1interprocess_1_1offset__ptr.html" title="Class template offset_ptr">offset_ptr</a> <a name="doxygen.boost_interprocess_header_reference.classboost_1_1interprocess_1_1offset__ptr_1ad2d1eaef02a54e6d8c7b36268bb55b98"></a><span class="keyword">operator</span><span class="special">+</span><span class="special">(</span><a class="link" href="classboost_1_1interprocess_1_1offset__ptr.html" title="Class template offset_ptr">offset_ptr</a> left<span class="special">,</span> <span class="identifier">difference_type</span> diff<span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span></pre>
<p><a class="link" href="classboost_1_1interprocess_1_1offset__ptr.html" title="Class template offset_ptr">offset_ptr</a> + difference_type operation </p>
</li>
<li class="listitem">
<pre class="literallayout"><a class="link" href="classboost_1_1interprocess_1_1offset__ptr.html" title="Class template offset_ptr">offset_ptr</a> <a name="doxygen.boost_interprocess_header_reference.classboost_1_1interprocess_1_1offset__ptr_1ad49058ebe7afe61ce598da1f991c782f"></a><span class="keyword">operator</span><span class="special">-</span><span class="special">(</span><a class="link" href="classboost_1_1interprocess_1_1offset__ptr.html" title="Class template offset_ptr">offset_ptr</a> left<span class="special">,</span> <span class="identifier">difference_type</span> diff<span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span></pre>
<p><a class="link" href="classboost_1_1interprocess_1_1offset__ptr.html" title="Class template offset_ptr">offset_ptr</a> - diff operation </p>
</li>
<li class="listitem">
<pre class="literallayout"><a class="link" href="classboost_1_1interprocess_1_1offset__ptr.html" title="Class template offset_ptr">offset_ptr</a> <a name="doxygen.boost_interprocess_header_reference.classboost_1_1interprocess_1_1offset__ptr_1a43b9a4a1e49d118e91222018b16fd362"></a><span class="keyword">operator</span><span class="special">-</span><span class="special">(</span><span class="identifier">difference_type</span> diff<span class="special">,</span> <a class="link" href="classboost_1_1interprocess_1_1offset__ptr.html" title="Class template offset_ptr">offset_ptr</a> right<span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span></pre>
<p><a class="link" href="classboost_1_1interprocess_1_1offset__ptr.html" title="Class template offset_ptr">offset_ptr</a> - diff operation </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">difference_type</span> 
<a name="doxygen.boost_interprocess_header_reference.classboost_1_1interprocess_1_1offset__ptr_1a452f048c5a6c38f7fb71aff30ab4c10c"></a><span class="keyword">operator</span><span class="special">-</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="classboost_1_1interprocess_1_1offset__ptr.html" title="Class template offset_ptr">offset_ptr</a> <span class="special">&amp;</span> pt<span class="special">,</span> <span class="keyword">const</span> <a class="link" href="classboost_1_1interprocess_1_1offset__ptr.html" title="Class template offset_ptr">offset_ptr</a> <span class="special">&amp;</span> pt2<span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span></pre>
<p><a class="link" href="classboost_1_1interprocess_1_1offset__ptr.html" title="Class template offset_ptr">offset_ptr</a> - <a class="link" href="classboost_1_1interprocess_1_1offset__ptr.html" title="Class template offset_ptr">offset_ptr</a> operation </p>
</li>
</ol></div>
</div>
<div class="refsect2">
<a name="id-1.3.17.19.3.43.4.4.9"></a><h3>
<a name="id50-bb"></a><code class="computeroutput">offset_ptr</code> private member functions</h3>
<div class="orderedlist"><ol class="orderedlist" type="1">
<li class="listitem"><pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> T2<span class="special">&gt;</span> 
  <span class="keyword">void</span> <a name="doxygen.boost_interprocess_header_reference.classboost_1_1interprocess_1_1offset__ptr_1a7b53dcc06e69d65c56eb91faea2b5a48"></a><span class="identifier">assign</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="classboost_1_1interprocess_1_1offset__ptr.html" title="Class template offset_ptr">offset_ptr</a><span class="special">&lt;</span> <span class="identifier">T2</span><span class="special">,</span> <span class="identifier">DifferenceType</span><span class="special">,</span> <span class="identifier">OffsetType</span><span class="special">,</span> <span class="identifier">OffsetAlignment</span> <span class="special">&gt;</span> <span class="special">&amp;</span> ptr<span class="special">,</span> 
              <span class="emphasis"><em><span class="identifier">unspecified</span></em></span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> T2<span class="special">&gt;</span> 
  <span class="keyword">void</span> <a name="doxygen.boost_interprocess_header_reference.classboost_1_1interprocess_1_1offset__ptr_1afba2dcc1699274b73f64b99820ef5111"></a><span class="identifier">assign</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="classboost_1_1interprocess_1_1offset__ptr.html" title="Class template offset_ptr">offset_ptr</a><span class="special">&lt;</span> <span class="identifier">T2</span><span class="special">,</span> <span class="identifier">DifferenceType</span><span class="special">,</span> <span class="identifier">OffsetType</span><span class="special">,</span> <span class="identifier">OffsetAlignment</span> <span class="special">&gt;</span> <span class="special">&amp;</span> ptr<span class="special">,</span> 
              <span class="emphasis"><em><span class="identifier">unspecified</span></em></span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span></pre></li>
</ol></div>
</div>
</div>
</div>
<div class="copyright-footer">Copyright © 2005-2024 Ion Gaztanaga<p>
        Distributed under the Boost Software License, Version 1.0. (See accompanying
        file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
      </p>
</div>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="classboost_1_1interprocess_1_1simple__seq__fit.html"><img src="../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../interprocess/indexes_reference.html#doxygen.boost_interprocess_header_reference.offset__ptr_8hpp"><img src="../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="offset__ptr_8hpp_1ae7c20c7880cff81e435a5d59c162b8f0.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a>
</div>
</body>
</html>
